package com.qiaofang.applet.service.property.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * @author QF2019
 */
@Data
@Document(collection = "property_property")
@ApiModel("二手房（租/售/租售）详情")
@NoArgsConstructor
public class Property extends PropertyMain {

    @ApiModelProperty("装修")
    private String decoration;

    @ApiModelProperty("总层")
    private Integer totalFloor;

    @ApiModelProperty("楼层")
    private String floor;

    @ApiModelProperty("房源描述")
    private String propertyExplain;

    @ApiModelProperty("是否有电梯")
    private Boolean elevator;

    @ApiModelProperty("唯一住房")
    private Boolean onlyHouse;

    @ApiModelProperty("家具")
    private String furniture;

    @ApiModelProperty("家电")
    private String electric;

    @ApiModelProperty("产权类型")
    private String ownedType;

    @ApiModelProperty(value = "首页推荐")
    private Boolean recommend;

    @ApiModelProperty(value = "楼层范围（高/中/低）字段，规则为实际楼层低于总楼层1/3为低，高于总楼层2/3为高，其余为中层")
    private String floorRange;

    @ApiModelProperty(value = "有无贷款")
    private Boolean credit;

    @ApiModelProperty("关联更新 true:已更新关联数据 false:未更新关联数据")
    private Boolean relationUpdate;

    @ApiModelProperty(value = "房源图片集合")
    private List<String> imageUrls;

    @ApiModelProperty(value = "房源图片")
    private List<PropertyPhoto> photoList;

    @ApiModelProperty(value = "房源描述集合")
    private List<PropertyExplain> propertyExplainList;

    @ApiModelProperty(value = "首页主推排序")
    private Integer recommendSort;

    @ApiModelProperty(value = "委托编号")
    private String delegateNo;

    @ApiModelProperty("房源创建时间")
    private Date createdTime;

    @ApiModelProperty("房源核验码")
    private String verifyCode;

    @ApiModelProperty("房源核验二维码")
    private String verifyQrCode;

    @ApiModelProperty("房源核验类型")
    private String verifyType;

    @ApiModelProperty("委托编号(外网)")
    private String consignCode;

    @ApiModelProperty("小区磐石id")
    private Long estateRockId;

    @ApiModelProperty("营销库房源UUID")
    private String propertyBaseUuid;

    @ApiModelProperty("租房方式（1，整租，2,合租）")
    private Integer rentType;

}
